Custom themes

How can I do my own theme with my own post-types in php?
Do I have to create a post-type.php?
Where can I find the functions for the MarketPress to use with my own style?