Improved makefiel and documentation