Clarify cmdline and python interfaces, solves issue #127

Also introduces changes from Bulgaria hackathon on memory usage and concerns on OSX newline handling (related to issue #122, for which a SWIG interface is in the works, instead of the C-extensions).