Removed throwable bricks and did code organization.

This is the code for the first public release.