Added documentation and made a lot of changes to the Flatstrap core