Refactored project code, into a bin and a lib folder