Changed external directory to library for future use of other partial
php files. Added a lot of Bones functions.