Cleaned up code and added tools directory for Linux