added make install target; some cleanup