Cleaned up StlParser and made it more flexible to use. Also added helper methods for determining file type.