refactoring

- src file folders were renamed to ...Src to differentiate from headers
- inline functions were moved to .inl files
- bug fixes