Cleaned up prototype files and added comments